package com.bestcem.xm.member.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.time.Duration;

/**
 * @author ming.xue <ming.xue@idiaoyan.com>
 * @desc 推送联系人配置
 * @date 2021-08-18
 */
@Getter
@Setter
@Configuration
@ConfigurationProperties(prefix = "app.member.send-member-config")
public class SendMemberConfig {
    /**
     * 推送联系人批次大小
     */
    private int batchSize = 1000;

    /**
     * 联系人切片存续时间
     */
    private Duration sliceLife = Duration.ofHours(5).plusMinutes(30);

    ///**
    // * 消息消费频率
    // */
    //private int receiverConsumeConcurrency = 2;
    //
    ///**
    // * 每批消息个数
    // */
    //private int receiverPrefetchCount = 2;
}
